//
//  XRLeftOnlyImageTableCell.m
//  XClassRoom
//
//  Created by NeiQuan on 16/11/4.
//  Copyright © 2016年 Mr-yuwei. All rights reserved.
//

#import "XRLeftOnlyImageTableCell.h"
@interface XRLeftOnlyImageTableCell()


@end
@implementation XRLeftOnlyImageTableCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        _iconImageView=[[UIImageView alloc] init];
        [self.contentView addSubview:_iconImageView];
        [_iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.height.mas_equalTo(24);
            make.width.mas_equalTo(24);
            make.centerY.equalTo(self.contentView);
            make.left.equalTo(self.contentView).with.offset(15);
        }];

        _titleLable=[[UILabel alloc] init];
        _titleLable.textColor=[UIColor colorWithNSString:@"#333333"];
        _titleLable.font=[UIFont systemFontOfSize:17];
        [self.contentView addSubview:_titleLable];
        [_titleLable mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView);
            make.height.mas_equalTo(21);
            make.left.equalTo(_iconImageView.mas_right).offset(15);
        }];
        [self setBackgroundColor:[UIColor clearColor]];
    }
    return self;
}
@end
